Skip to content

docs: document opt-in appInfo User-Agent option for TypeScript and Python SDKs - #6498

Open
devin-ai-integration[bot] wants to merge 1 commit into
mainfrom
devin/1785604118-user-agent-app-info
Open

docs: document opt-in appInfo User-Agent option for TypeScript and Python SDKs#6498
devin-ai-integration[bot] wants to merge 1 commit into
mainfrom
devin/1785604118-user-agent-app-info

Conversation

@devin-ai-integration

Copy link
Copy Markdown
Contributor

Summary

Documents a new opt-in generator flag that lets an application built on top of a Fern SDK identify itself in the User-Agent header. When the flag is on, generated clients accept an app/product identifier (name, optional version, optional comment) whose token is appended to the User-Agent the SDK already sends. Partner platforms and integrators that redistribute or embed an SDK can attribute their traffic for support, analytics, and rate-limit attribution without forking generated code, and API owners can see which integration is calling them. The flag defaults to false, so generated output is unchanged until a user opts in.

Implements docs for: feat(typescript): add opt-in appInfo client option appended to User-Agent (fern-api/fern#17290) and feat(python): add opt-in appInfo client option appended to User-Agent (fern-api/fern#17302)

Changes

  • fern/products/sdks/generators/typescript/configuration.mdx: new allowUserAgentAppInfo entry (default false) next to includePlatformHeaders, with the appInfo: { name, version?, comment? } client option, the {name}/{version} ({comment}) token format, and an example resulting header.
  • fern/products/sdks/generators/python/configuration.mdx: new allow_user_agent_app_info entry (default false, camelCase alias allowUserAgentAppInfo) documenting the app_info constructor argument, its composition with include_platform_headers and runtime_version, and suppression by omit_fern_headers.

Both entries note that values are sanitized, an explicit User-Agent still takes precedence, and the header is unchanged when no app info is supplied. Only TypeScript and Python are documented — no other language pages were touched. No SDK changelog entries added.

pre-commit run --files <changed files> passes with no new Vale findings, and fern check --warnings reports 0 errors.

Link to Devin session: https://app.devin.ai/sessions/f8458cd5eb674d5c8fac324fdef72b3a

…thon SDKs

Co-Authored-By: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
@devin-ai-integration
devin-ai-integration Bot requested a review from devalog as a code owner August 1, 2026 17:09
@devin-ai-integration

Copy link
Copy Markdown
Contributor Author

🤖 Devin AI Engineer

I'll be helping with this pull request! Here's what you should know:

✅ I will automatically:

  • Address comments on this PR. Add '(aside)' to your comment to have me ignore it.
  • Look at CI failures and help fix them

Note: I can only respond to comments from users who have write access to this repository.

⚙️ Control Options:

  • Disable automatic comment, CI, and merge conflict monitoring

@github-actions

github-actions Bot commented Aug 1, 2026

Copy link
Copy Markdown
Contributor

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

0 participants